<template>
	<view style="padding-bottom: 150rpx;" class="mainpadding2">
		<view class="mainpadding_top ffffff radius">
			<view class="flexbetween" >
				<view class="flexleft" v-if="dataAll.info.teacher_id">
					<!-- <image :src="dataAll.teacher.avatar" mode="" class="listheadplimg"></image> -->
					<view class="xiaohei margin_left1">{{dataAll.info.teacher.username}}</view>
				</view>
				<view class="xiaohui">{{dataAll.info.replytime_text}}</view>
			</view>
			<view class="hei_text bold main_size margin_top">{{dataAll.info.reply_content}}</view>
			<template v-if="dataAll.info.reply_video_text">
				<video :src="dataAll.info.reply_video_text" style="height: 350rpx;width:100%;"
					class="margin_top"></video>
			</template>
		</view>
		<view class="mainpadding_top ffffff radius" v-if="dataAll.comment">
			<view class="flexbetween">
				<view class="titletext hei_text bold">我的评价</view>
				<view class="flexright xiaolan">
					<view class="haopings" v-if="dataAll.comment.composite_evaluate==5"></view>
					<view class="margin_left1" v-if="dataAll.comment.composite_evaluate==5">好评</view>
					<view class="zhongpings"  v-if="dataAll.comment.composite_evaluate==3"></view>
					<view class="margin_left1"  v-if="dataAll.comment.composite_evaluate==3">中评</view>
					<view class="chapings" v-if="dataAll.comment.composite_evaluate==1"></view>
					<view class="margin_left1"  v-if="dataAll.comment.composite_evaluate==1">差评</view>
					
				</view>
			</view>
			<view class="hei_text bold main_size margin_top">{{dataAll.comment.content}}</view>
			<view class="bghui mainpadding_top radius" v-if="dataAll.comment.reply_content">
				<view class="xiaohei">{{dataAll.comment.reply_content}}</view>
			</view>
		</view>
		<view class="posibottom mainpadding2" v-if="!dataAll.comment">
			<view class="submitbtn" @click="jumpurl('/pages_mine/fabiaopj?type=5&id=',listid)">评价回答</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				listid:"",
				dataAll:{}
			}
		},
		onLoad(options) {
			this.listid = options.id
			
		},
		onShow() {
			this.getdetail()
		},
		methods: {
			getdetail(){
				httpRequest.request('/api/teacher/getquestiondetail', 'POST', {
					teacher_question_id:this.listid
				}).then(res => {
					this.dataAll = res.data
				})
			},
			jumpurl(url, id) {
				uni.navigateTo({
					url: url + id
				})
			},
		}
	}
</script>

<style>

</style>